import java.io.File;
import java.util.Arrays;

public class demo04 {
    public static void main(String[] args) {
        File file=new File("test_dir");
        String[] results=file.list();
        System.out.println(Arrays.toString(results));
        File[] results1=file.listFiles();
        System.out.println(Arrays.toString(results1));
    }
}
